import 'package:get/get.dart';
import 'pages/deviceInfo/index.dart';
import 'pages/photoAndCamera/index.dart';
import 'pages/location/index.dart';
import 'pages/contacts/index.dart';
import 'pages/contacts/list.dart';
import 'pages/sound/index.dart';
import 'pages/native/index.dart';
import 'pages/inwebview/index.dart';
import 'pages/inwebview/index-offline.dart';
import 'pages/inwebview/offline.dart';
import 'pages/login/index.dart';
import 'pages/login/login_page.dart';
import 'pages/unimp/index.dart';
import 'pages/home/index.dart';

/// 页面管理路由表
abstract class Routers {
  static String homePage = '/home';

  static final routes = [
    GetPage(
        name: homePage,
        page: () => const MyHomePage(),
        transition: Transition.fade),
    GetPage(name: '/device_info', page: () => const DeviceInfoPage()),
    GetPage(name: '/image_picker', page: () => const ImagePickerPage()),
    GetPage(name: '/location', page: () => const LocationPage()),
    GetPage(name: '/contacts', page: () => const ContactsPage()),
    GetPage(name: '/contacts/list', page: () => ContactListPage()),
    GetPage(name: '/contacts/picker', page: () => const ContactsPage()),
    GetPage(name: '/sound', page: () => const SimpleRecorderPage()),
    GetPage(name: '/native', page: () => const NativePage()),
    GetPage(name: '/web', page: () => const WebViewPage()),
    GetPage(name: '/web-off', page: () => const OfflineDownloadPage()),
    GetPage(name: '/web-off/page', page: () => const OfflineWebViewPage()),
    GetPage(name: '/login', page: () => const LoginPage()),
    GetPage(name: '/login2', page: () => const Login2Page()),
    GetPage(name: '/uni', page: () => const UnimpPage()),
  ];
}
